<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            background-color: #f5f5f5;
            margin: 0;
            padding: 0;
        }

        .container{
            width: 1920px;
            height: 600px;
            background-color: #DE0100;
            position: relative;
        }

        .logo{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .login{
            position: absolute;
            width: 350px;
            height: 400px;
            background-color: #fff;
            top: 50%;
            right: 365px;
            transform: translateY(-50%);
        }

        .login .login-type{ 
            margin: 28px 0 28px 25px;
            color: #000;
            font-size: 16px;
            font-weight: 700;
        }

        .login-type span{
            position: relative;
        }

        .login-type span.active::after{
            content: '';
            position: absolute;
            width: 100%;
            height: 2px;
            background-color: #000;
            left: 0;
            bottom: -2px;
        }

        .login-form{ 
            margin: 25px;
            /* border: 1px solid #ccc; */
        }

        .form-item{
            width: 300px;
            height: 42px;
            margin: 0;
            padding: 0;
            margin-bottom: 20px;
            font-size: 0;
            position: relative;
        }

        .form-item input{
            width: 245px;
            height: 40px;
            border: 1px solid #ddd;
            border-left: 0px;
            padding: 0 0 0 10px;
            display: inline-block;
            font-size: 14px;
            vertical-align: top;
        }

        .form-item input::placeholder{ 
            color: #999;
            font-size: 14px;
        }

        .form-item input:focus{ 
            outline: none;
            border-color: #DE0100;
        }

        .form-item span{            
            width: 40px;
            height: 40px;
            border: 1px solid transparent;
            border-right: 0px;
            background-color: #ddd;
            display: inline-block;
            font-size: 14px;
            vertical-align: top;
            position: relative;
        }

        .form-item:focus-within span{ 
            border-color: #DE0100;
        }

        .form-item span::after{
            content: '';
            position: absolute;
            width: 16px;
            height: 18px;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }

        .form-item span.user-icon::after{
            background-image: url('/src/img/tmall/icon-user.png');
        }

        .form-item span.password-icon::after{
            background-image: url('/src/img/tmall/icon-pwd.png');
        }

        .form-submit{
            width: 300px;
            height: 42px;
            margin: 0;
            padding: 0;
            margin-bottom: 20px;
            font-size: 0;
        }

        .form-submit input{ 
            width: 300px;
            height: 42px;
            border-radius: 5px;
            background-color: #DE0100;
            border: 0px;
            color: white;
            font-size: 16px;
            text-align: center;
            font-weight: bold;
        }

        .login-other{ 
            text-align: right;
            padding-right: 25px;
        }

        .login-other a{ 
            color: #757575;
            font-size: 14px;
            text-decoration: none;
        }

        .login-other a:hover{ 
            color: #000;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="logo">
            <img src="/src/img/tmall/tmall.png" alt="">
        </div>

        <div class="login"> 
            <div class="login-type">
                <span class="active">密码登录</span>
                <span >短信登录</span>
            </div>

            <form action="" class="login-form">
                <div class="form-item">
                    <span class="user-icon"></span>
                    <input type="text" id="username" placeholder="会员名/邮箱/手机号">
                </div>
                <div class="form-item">
                    <span class="password-icon"></span>
                    <input type="password" id="password" placeholder="请输入密码">
                </div>
                <div class="form-submit">
                    <input type="submit" value="登录">
                </div>
            </form>

            <div class="login-other">
                <a href="">忘记密码</a>
                <a href="">忘记用户名</a>
                <a href="">免费注册</a>
            </div>
        </div>
    </div>
</body>
</html>